ENT.Type = "anim"
ENT.Base = "base_anim"

ENT.PrintName		= ""
ENT.Author			= ""
ENT.Contact			= ""
ENT.Purpose			= ""
ENT.Instructions	= ""

ENT.MaxHealth = 200
ENT.BuildTime = 10.0


function ENT:GetHealth()
	
	return self:Health()

end

function ENT:ExtraNW() // For overide
	return {}
end

function ENT:UpdateNW()

	local NWTable = {
		{"BuildState", true, NWTYPE_BOOLEAN },
		{"SpawnTime", CurTime(), NWTYPE_FLOAT },
		{"HEALTH", self.MaxHealth * 0.5, NWTYPE_FLOAT },
		{"TEAM", self.TEAM or 0, NWTYPE_CHAR }
	}
	
	RegisterNWTable( self, table.Add( NWTable, self:ExtraNW() ) )

end

function ENT:Team()
	return self.TEAM
end

function ENT:GetProgress()
	return math.min( ( CurTime() - self.SpawnTime ) / self.BuildTime, 1.0 )
end

function ENT:Building()
	return self.BuildState
end

function ENT:ArcHealth()
	return self.HEALTH
end